package com.example.synccenter.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * 身份源配置变更事件
 */
@Getter
public class IdentitySourceConfigEvent extends ApplicationEvent {
    
    private final String id;
    private final String type;
    private final EventType eventType;

    public IdentitySourceConfigEvent(String id, String type, EventType eventType) {
        super(id);
        this.id = id;
        this.type = type;
        this.eventType = eventType;
    }

    public enum EventType {
        CREATE,
        UPDATE,
        DELETE,
        ENABLE,
        DISABLE
    }
} 